<!--div id="tablecontent" class="col-md-12"-->						
	<div class="form-group">
		<div class="table-responsive">
			<table class="table table-bordered table-condensed table-striped" style="background:#f9f9f9;">
				<thead>
					<tr>
						<th class="tblhead" style="width:4%;text-align:center;">No</th>
						<th class="tblhead" style="width:12%;text-align:center;">Item Name</th>
						<th class="tblhead" style="width:11%;text-align:center;">Total Qty</th>
						<th class="tblhead" style="width:11%;text-align:center;">Qty Active</th>
						<th class="tblhead" style="width:11%;text-align:center;">Qty Not Active</th>
						<th class="tblhead" style="width:11%;text-align:center;">Qty Stand By</th>
						<th class="tblhead" style="width:11%;text-align:center;">Qty Borrow</th>
						<th class="tblhead" style="width:12%;text-align:center;">Status</th>
						<th class="tblhead" style="width:17%;text-align:center;">Action</th>
					</tr>
				</thead>
				<tbody>
					<?php
					if (empty($list_data)) {
						?>
						<tr><td colspan="9" style="text-align:center">No Data Available</td></tr>
						<?php
					} else {
						foreach ($list_data as $row) {
							?>
							<tr>
								<?php
								$warehouse_id 		 		= $row["WAREHOUSE_ID"];
								$warehouse_item_name 		= $row["WAREHOUSE_ITEM_NAME"];
								$warehouse_item_qty 		= $row["WAREHOUSE_ITEM_QTY"];
								$warehouse_item_status 		= $row["WAREHOUSE_ITEM_STATUS"];
								$warehouse_item_qty_in 		= $row["WAREHOUSE_ITEM_QTY_IN"];
								$warehouse_item_qty_out		= $row["WAREHOUSE_ITEM_QTY_OUT"];
								$warehouse_item_active		= $row["WAREHOUSE_ITEM_ACTIVE"];
								$warehouse_item_not_active	= $row["WAREHOUSE_ITEM_NOT_ACTIVE"];
								$warehouse_status 	= ($warehouse_item_status == 'Y') ? 'Active' : 'Not Active';
								?>

								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;"><?php echo $row["RECNUM"]; ?>.</td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $warehouse_item_name; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $warehouse_item_qty; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $warehouse_item_active; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $warehouse_item_not_active; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $warehouse_item_qty_in; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $warehouse_item_qty_out; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;">
									<?php if($warehouse_item_status=='Y') :?>
										<a class="btn btn-sm btn-primary" href="#" onclick="activation_item('<?php echo $warehouse_id ?>', '<?php echo $warehouse_item_status ?>');">
										<!--span class="glyphicon glyphicon-ok"></span--> <?php echo $warehouse_status; ?></a>
									<?php else: ?>
										<a class="btn btn-sm btn-danger" href="#" onclick="activation_item('<?php echo $warehouse_id ?>', '<?php echo $warehouse_item_status ?>');">
										<!--span class="glyphicon glyphicon-ban-circle"></span--> <?php echo $warehouse_status; ?></a>
									<?php endif; ?>
								</td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;">
									<a class="btn btn-sm btn-warning" href="#" onclick="edit_data('<?php echo $warehouse_id ?>');">
										<!--span class="glyphicon glyphicon-edit"></span--> Edit</a>
									<a class="btn btn-sm btn-danger" href="#" onclick="delete_data('<?php echo $warehouse_id ?>');">
										<!--span class="glyphicon glyphicon-remove"></span--> Delete</a>
								</td>
							</tr>
							<?php
						}
					}
					?>
				</tbody>
			</table>
		</div>
	</div>
	<div class="form-group">
		<div id="mypaging">
			<?php
			echo $paging;
			echo $jump_page;
			echo $ipp;
			?>
		</div>								
	</div>
<!--/div-->